package com.me.bbs.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import com.me.bbs.entity.Comment;
import com.me.bbs.entity.Post;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author Liming Wang
 * @Description
 * @Create 2023/1/13 21:22
 */
@Data
public class CommentDTO {
    @TableId

    private Long commentId;

    private UserDTO author;

    private Long post;
    private Post postEntity;
    @ApiModelProperty("0:父评论，1：子评论，2：回复子评论")
    private Byte type;

    private Long parentComment;

    private Long replyToSub;
    private Boolean isLike;
    private Long forum;
    private String content;
    private Integer totalSubs;
    private Integer floor;
    private Integer likeCount;
    private LocalDateTime createAt;
    private List<SubCommentDTO> subComments;
}
